<%@ page title="" language="C#" masterpagefile="~/EmpSite.master" autoeventwireup="true" inherits="empLeaveApproval, App_Web_irvafolg" %>

<%--<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
</asp:Content>--%>

<%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="AjaxControlToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style6
        {
            width: 915px;
            color: #FFFFFF;
        }
        .style14
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
        }
        .textbox
        {}
        .btnRt003366
        {}
        .style17
        {
            width: 196px;
        }
        .style18
        {
            width: 218px;
        }
        .style19
        {
            font-family: Verdana;
            font-size: 8pt;
        }
        .style20
        {
            font-family: Verdana;
            font-size: 9pt;
            font-weight: 700;
        }
        #Search
        {
            font-family: Verdana;
            font-size: 9pt;
        }
        .style21
        {
            height: 28px;
            width: 906px;
            font-size: 8pt;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <script type="text/javascript">

    function validate() {
        var txttext = document.getElementById("<%= cboStatus.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter Leave Status");
            document.getElementById("<%= cboStatus.ClientID %>").focus();
            return false;
        }
        var txttext = document.getElementById("<%= txtfromdate.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter From Date");
            document.getElementById("<%= txtfromdate.ClientID %>").focus();
            return false;
        }

        var txttext = document.getElementById("<%= txtdateto.ClientID %>").value;
        if (txttext == "") {
            alert("Please Enter To Date");
            document.getElementById("<%= txtdateto.ClientID %>").focus();
            return false;
        }

        return true;
    }
    function RefreshParent() {

        window.opener.document.getElementById("search").click();
        alert('sharad');
        window.close();
    }
</script>
    


  <br />
  <br />
  <br />

   <div class="row">
        <div class="col-lg-12">
                       
        <div class="panel panel-primary">
                              <div class="panel-heading">
                                <h3 class="panel-title"><i class="fa fa-edit fa-fw"></i>Add/Edit Leave Application </h3>
                            </div>
                               <div class="panel-body" >
                               <div class="col-lg-12" style="margin-top:15px; top: 0px; left: 0px;">
							  <ol class="breadcrumb"><li><b>
EmplEmployee Details</b></li></ol>
							  </div>
                              <div class="col-lg-3">
                               <asp:Label ID="Label22" runat="server" Text="Employee Code" ></asp:Label>
            <asp:Label ID="Label35" runat="server" ForeColor="#FF3300" 
                Text="*"></asp:Label>
                 <asp:TextBox ID="txtpaycode" runat="server"
          class="form-control"></asp:TextBox>

                              </div>
                                <div class="col-lg-3">
                                 <asp:Label ID="Label21" runat="server" Text="From Date" ></asp:Label>
                                 <asp:TextBox ID="txtfromdate" runat="server" class="form-control"></asp:TextBox>
                             <AjaxControlToolkit:calendarextender id="CalendarExtender1" runat="server" format="dd/MM/yyyy" 
                                 targetcontrolid="txtfromdate">
                                 </AjaxControlToolkit:calendarextender>
 
        
         
                              
                              </div>
                                <div class="col-lg-3">
                               <asp:Label ID="Label24" runat="server" Text="To Date" ></asp:Label>

                               <asp:TextBox ID="txtdateto" runat="server" class="form-control"></asp:TextBox>

 <AjaxControlToolkit:calendarextender id="CalendarExtender2" runat="server" format="dd/MM/yyyy" 
                                 targetcontrolid="txtdateto">
                                 </AjaxControlToolkit:calendarextender>
                              </div>
                                <div class="col-lg-3">
                              <asp:Label ID="Label4" runat="server" Text="Status" ></asp:Label>
                              <asp:DropDownList ID="cboStatus" runat="server"
        
       class="form-control">
    <asp:ListItem>----Select Status---</asp:ListItem>
    <asp:ListItem>Approved</asp:ListItem>
    <asp:ListItem>UnApproved</asp:ListItem>
      </asp:DropDownList>

                              </div>
                                <div class="col-lg-3">
                              <asp:Label ID="Label12" runat="server" Text="Employee Name" ></asp:Label>
                                                    <asp:TextBox ID="txtName" runat="server" class="form-control"></asp:TextBox>

                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label13" runat="server" Text="Father/Husband Name" ></asp:Label>
                                <asp:TextBox ID="txtfarther" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label5" runat="server" Text="Designation" ></asp:Label>
                                <asp:TextBox ID="txtdesignation" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label6" runat="server" Text="Compnay" ></asp:Label>
                                <asp:TextBox ID="txtcompnay" runat="server" class="form-control"></asp:TextBox>
                              </div>
                             <div class="col-lg-3">
                           <asp:Label ID="Label7" runat="server" Text="Card No" ></asp:Label>
                            <asp:TextBox ID="txtcardno" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label8" runat="server" Text="Department" ></asp:Label>
                                <asp:TextBox ID="txtdepartment" runat="server" class="form-control"></asp:TextBox>
                               
                              
                              </div>
                                <div class="col-lg-3">
                                 <asp:Label ID="Label25" runat="server" Text="Email Address" ></asp:Label>
                              <asp:TextBox ID="TxtEmail" runat="server" class="form-control"></asp:TextBox>
                              </div>
                              <div class="col-lg-12" style="margin-top:15px; top: 0px; left: 0px;">
							  <ol class="breadcrumb"><li><b>

Leave Details</b></li></ol>
							  </div>
                              <div class="col-lg-3">
                              <asp:Label ID="Label1" runat="server" Text="Leave Name " ></asp:Label>
                              <asp:DropDownList ID="cboleavename" runat="server" class="form-control">
      </asp:DropDownList>
                              
                              </div>
                                <div class="col-lg-3">
                                <asp:Label ID="Label2" runat="server" Text="Reason " ></asp:Label>
                                <asp:TextBox ID="txtreason" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>
                                <div class="col-lg-3">
                               <asp:Label ID="Label3" runat="server" Text="Remarks " ></asp:Label>
                <asp:Label ID="Label36" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                    <asp:TextBox ID="Txtremark" runat="server" class="form-control"></asp:TextBox>
                              
                              </div>

                               <div class="col-lg-12" style="margin-top:15px; top: 0px; left: 0px;">
							  <ol class="breadcrumb"><li><b>

Leave Duration</b></li></ol>
							  </div>
                              <div class="col-lg-3">
                              <asp:RadioButton ID="cboquarter" runat="server" GroupName="ss" Text="" 
                                      Enabled="False" />Quarter
                              </div>
                               <div class="col-lg-3">
                               <asp:RadioButton ID="cbohalfday" runat="server" GroupName="ss" 
                                         Text="" Enabled="False" />Half Day
                              </div>
                               <div class="col-lg-3">
                               <asp:RadioButton ID="cbothreefourth" runat="server" GroupName="ss" 
                                         Text="" Enabled="False" />Three Fourth
                              </div>
                               <div class="col-lg-3">
                              <asp:RadioButton ID="cbofullday" runat="server" GroupName="ss" 
                                         Text="" Checked="True" Enabled="False" />Full Day
                              </div>
                                
                            
                              


                               </div>

                               <center>
							  <div class="col-lg-12"  style="margin-top:30px;">
							  <ol class="breadcrumb">
								
                                <asp:Button ID="cmdsave" runat="server" Text="Save"  
        type="button" class="btn btn-success " onclick="cmdsave_Click" /><i class="fa fa-plus;"></i>
        <asp:Button ID="cmdcancel" runat="server" type="button" Text="Cancel"
           class="btn btn-danger" onclick="cmdcancel_Click"
           /><i  class="fa fa-trash-o;"></i>

							  </ol>
							  </div>
                              </center>

                                

                             
                              </div>
                              </div>
                              </div>




            



            
</asp:Content>
